package middleWare

import (
	"github.com/kataras/iris/v12"
	"github.com/kataras/iris/v12/sessions"
)

func Init(app *iris.Application) {
	sess := sessions.New(sessions.Config{})
	app.UseRouter(sess.Handler())
	app.Use(ErrorMsgHandler())
	app.Use(JwtMiddleWare())
}
